public class Test {
    public static void main(String[] args) {
        MyLinkedList linkedList = new MyLinkedList();
        linkedList.addLast(1);
        linkedList.addLast(2);
        linkedList.addLast(3);
        linkedList.addLast(4);
/*         linkedList.addLast(2);
        linkedList.addLast(2);
        linkedList.addLast(2); */
        linkedList.addLast(5);
        linkedList.display();
        // System.out.println(linkedList.size());
        // linkedList.addIndex(-1,6);
        // linkedList.display();

        // linkedList.removeAllKey(2);
        // linkedList.display();

        linkedList.clear();
        linkedList.display();




    }
}
